<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>修改个人信息</title>

    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    
    <link rel="stylesheet" href="${pageContext.request.contextPath }/dist/css/bootstrap.min.css" type="text/css"></link>
    <link rel="stylesheet" href="${pageContext.request.contextPath }/assets/css/ie10-viewport-bug-workaround.css" type="text/css"></link>
    <link rel="stylesheet" href="${pageContext.request.contextPath }/assets/css/justified-nav.css" type="text/css"></link>
    <script type="text/javascript" src="${pageContext.request.contextPath }/assets/js/ie-emulation-modes-warning.js"></script>
    
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath }/css/jquery.pagination.css" />
    <script type="text/javascript" src="${pageContext.request.contextPath }/js/jquery.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath }/js/jquery.pagination.min.js"></script>
</head>
<body>

<div class="container">
      <div class="masthead">
        <h3 class="text-muted">智能图书管理系统</h3>
        <nav>
          <ul class="nav nav-justified">
            <li><a href="<%=request.getContextPath()%>/user/show">图书查询</a></li>
            <li><a href="<%=request.getContextPath()%>/user/back">借阅查询</a></li>
            <li><a href="<%=request.getContextPath()%>/user/showBackBook">图书归还或评分</a></li>
            <li><a href="<%=request.getContextPath()%>/user/showReserveBook">预约查询</a></li>
            <li class="active"><a href="<%=request.getContextPath()%>/user/person">个人信息</a></li>
            <li><a href="<%=request.getContextPath()%>/quit">退出登录</a></li>
          </ul>
        </nav>
      </div>
      
<div align="center">
 
 <h2><lable>请填写您的个人信息</lable></h2>
   <c:if test="${msg!=null }">
			       		<span class="text-danger">${msg}</span>
			 </c:if>
 
	<form id="form" action="<%=request.getContextPath()%>/user/updatePerson" method="post">
	
		 <input type="hidden" name="id" value="${person.id}" />
		 <input type="hidden" name="uid" value="${person.uid}" />
		
		<lable >真实姓名：</lable> <input type="text" name="realName" style='width:200px;'
			 placeholder="真实姓名" 
			<c:if test="${realName!=null and reanName!='' }">value="${realName}"</c:if> />&nbsp;&nbsp;
		<br/>
		<br/>
		<br/>		
		<lable >性&nbsp;&nbsp;&nbsp;&nbsp;别：</lable>&nbsp;&nbsp;&nbsp;&nbsp;<select  name="sex" style='width:200px;'>
					<option value=0 selected="selected">--请选择性别--</option>
					<option value=0 >女</option>
					<option value=1 >男</option>
				</select>&nbsp;&nbsp;
				
		<br/>
		<br/>
		<br/>
		 <lable >联系电话：</lable> <input type="text" name="phone" style='width:200px;'
			 placeholder="联系电话" 
			<c:if test="${phone!=null and phone!='' }">value="${phone}"</c:if> />&nbsp;&nbsp;
			
		<br/>
		<br/>
		<br/>		
		<lable >个性签名：</lable>	<input type="text" name="personWord" style='width:200px;'
			 placeholder="个性签名" 
			<c:if test="${personWord!=null and personWord!='' }">value="${personWord}"</c:if> />&nbsp;&nbsp;
			
		<br/>
		<br/>		
		<br/>		
		<button type="submit" class="btn btn-success btn-block" style='width:250px;'>提交</button>
		&nbsp;&nbsp; 
		
	</form>	
	<a href="<%=request.getContextPath()%>/user/person" class="btn btn-primary btn-block" style='width:250px;'>返回</a>
	</div>
 <!-- Site footer -->
      <footer class="footer" align="center">
        <p>YanJiaDou &copy; 2020 版权所有</p>
      </footer>

</div>
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
    <script type="text/javascript" src="${pageContext.request.contextPath }/assets/js/ie10-viewport-bug-workaround.js"></script>
</body>
</html>
